package com.yupi.usercenter.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.yupi.usercenter.model.entity.Attachment;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 云路供应链科技有限公司 版权所有  Copyright 2020
 *
 * @author by jiweiyu
 * @since Created in 2020/8/15
 */
@Data
public class MonitorWoLogVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 问题件工单id
     */
    private Long workOrderId;

    /**
     * 流向节点id
     */
    private Integer toNetworkId;

    /**
     * 流向节点编码
     */
    private String toNetworkCode;

    /**
     * 流向节点名称
     */
    private String toNetworkName;

    /**
     * 操作节点id
     */
    private Integer fromNetworkId;

    /**
     * 操作节点code
     */
    private String fromNetworkCode;

    /**
     * 操作节点name
     */
    private String fromNetworkName;

    /**
     * 操作类型变更
     */
    private Integer operationType;

    /**
     * 处罚金额变更
     */
    private BigDecimal penaltyAmount;

    /**
     * 奖励金额变更
     */
    private BigDecimal awardAmount;

    /**
     * 补贴金额变更
     */
    private BigDecimal subsidyAmount;

    /**
     * 补贴金额变更
     */
    private BigDecimal handlingFee;

    /**
     * 问题件附件
     */
    private List<Attachment> problemPieceAttachment;

    /**
     * 举证附件变更
     */
    private List<Attachment> proofAttachment;

    /**
     * 处理意见变更
     */
    private String processorOpinions;

    /**
     * 联系方式
     */
    private String contactInformation;

    /**
     * 处理人名字
     */
    private String processorName;

    /**
     * 操作时间
     **/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;

}
